package org.easy.core.dto;

import com.alibaba.fastjson.JSON;
import org.easy.core.util.Md5Util;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.List;

@Data
@AllArgsConstructor
public class RequestSummary {
    private String ip;
    private String url;
    private String method;
    private String heads;
    private String token;
    private List<Object> args;

    public String getUniqueRequestMd5() {
        return Md5Util.getMD5(url + method + token + JSON.toJSONString(args));
    }
}